package com.ydgk.dao;

import com.ydgk.bean.Type;
import org.springframework.jdbc.core.BeanPropertyRowMapper;

import java.util.List;

public class typeDao extends BaseDao<Type> {
    @Override
    public int save(Type type) {
        return 0;
    }

    @Override
    public int updateById(Type type) {
        return 0;
    }

    @Override
    public int deleteById(int id) {
        return 0;
    }

    @Override
    public List<Type> findAll() {
        return this.template.query("select * from type",new BeanPropertyRowMapper<Type>(Type.class));
    }

    @Override
    public Type findById(int id) {
        return null;
    }

    @Override
    public List<Type> paging(int pageNumber) {
        return null;
    }
}
